package org.dromara.basedata.domain.bo;

import org.dromara.basedata.domain.ProductCategory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 产品大类业务对象 product_category
 *
 * @author Lion Li
 * @date 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProductCategory.class, reverseConvertGenerate = false)
public class ProductCategoryBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 编号
     */
    private String code;

    /**
     * 父级ID
     */
    private Long parentId;

    /**
     * 租级列表
     */
    private String ancestors;

    /**
     * 规格
     */
    private String specifications;

    /**
     * 性能参数名称
     */
    private String performanceParamName;

    /**
     * 性能参数单位
     */
    private String performanceParamUnit;

    /**
     * 性能参数范围
     */
    private String performanceParamRange;

    /**
     * 结构参数
     */
    private String structureParam;

    /**
     * 结构参数单位
     */
    private String structureParamUnit;

    /**
     * 结构参数范围
     */
    private String structureParamRange;

    /**
     * 电机型号
     */
    private String motorModel;

    /**
     * 电机功率
     */
    private Long motorPower;


}
